package com.dsj.gxrd.modules.controller.activity;

import com.dsj.gxrd.modules.activity.domain.entity.RdExcellentAdvice;
import com.dsj.gxrd.modules.activity.service.RdExcellentAdviceService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * ok
 * @author songpin566
 * @date 2023/09/14
 **/
@Api(tags = "十佳建议")
@RestController
@RequestMapping("/excellent/advice")
public class RdExcellentAdviceController extends BaseController {

    @Autowired
    private RdExcellentAdviceService rdExcellentAdviceService;

    @GetMapping("/list")
    public TableDataInfo list(String name,Integer year) {
        startPage();
        List<RdExcellentAdvice> list = rdExcellentAdviceService.selectExcellentAdviceList(name,year);
        return getDataTable(list);
    }


}
